package com.qipay.doc.service;

import com.qipay.baas.model.ActionDoc;
import com.qipay.baas.model.ActionDocDetail;

import java.util.List;

public interface ActionDocService {

    int insertActionDoc(ActionDoc actionDoc);

    int updateActionDoc(ActionDoc actionDoc);

    ActionDoc selectActionDocByPK(int id);



    int deleteActionDoc(int id);

    List<ActionDoc> selectActionDocByType(byte type);

    int insertActionDocDetail(ActionDocDetail actionDocDetail);

    int updateActionDocDetail(ActionDocDetail actionDocDetail);

    ActionDocDetail selectActionDocDetailByPK(int id);

    int deleteActionDocDetail(int id);

    List<ActionDocDetail> selectActionDocDetailByDocId(int docId);

    List<ActionDocDetail> selectActionDocDetailByDocIdAndPid(int docId,int pid);

    /**
     * 获取全部文章，文章的内容不取。
     * @return
     */
    List<ActionDocDetail> selectSmartActionDocDetailAll();

}
